<?php

namespace App\Http\Controllers\Backend;

use App\Http\Controllers\BaseController;
use Illuminate\Http\JsonResponse;
use Mews\Captcha\Facades\Captcha;


class CaptchaController extends BaseController
{
    /**
     * @return JsonResponse
     */
    public function captcha(): JsonResponse
    {
        $captcha = Captcha::create('flat',true);
        $result = array('code'=>0,'data'=>$captcha);
        return $this->apiResult($result);
    }
}
